import request from '@/utils/request'

// 查询部门列表
export function getswipeList(data) {
  return request({
    url: '/advertising/list',
    method: 'post',
    data: data
  })
}
// 新增部门
export function infoSwipe(data) {
  return request({
    url: '/advertising/info',
    method: 'post',
    data: data
  })
}
// 新增部门
export function addSwipe(data) {
    return request({
      url: '/advertising/add',
      method: 'post',
      data: data
    })
  }
  // 新增部门
export function editSwipe(data) {
    return request({
      url: '/advertising/edit',
      method: 'post',
      data: data
    })
  }
  // 新增部门
export function removeSwipe(data) {
    return request({
      url: '/advertising/remove',
      method: 'post',
      data: data
    })
  }


//商品
export function getProductList(data) {
  return request({
    url: '/product/list',
    method: 'post',
    data: data
  })
}
export function infoProduct(data) {
  return request({
    url: '/product/info',
    method: 'post',
    data: data
  })
}
export function addProduct(data) {
    return request({
      url: '/product/add',
      method: 'post',
      data: data
    })
  }
export function editProduct(data) {
    return request({
      url: '/product/edit',
      method: 'post',
      data: data
    })
  }
export function removeProduct(data) {
    return request({
      url: '/product/remove',
      method: 'post',
      data: data
    })
  }




  export function getorderlist(data) {
    return request({
      url: '/orders/list',
      method: 'post',
      data: data
    })
  }


  export function getuserlist(data) {
    return request({
      url: '/wechat/user/list',
      method: 'post',
      data: data
    })
  }

  export function orderPrint(data) {
    return request({
      url: '/orders/print',
      method: 'post',
      data: data
    })
  }

  export function orderremove(data) {
    return request({
      url: '/orders/remove',
      method: 'post',
      data: data
    })
  }

  export function getTotal(data) {
    return request({
      url: '/orders/list/total',
      method: 'post',
      data: data
    })
  }